import random


def insertion_sort(arr):
    n = len(arr)
    for i in range(1, n):
        for j in range(i, 0, -1):
            if arr[j] < arr[j - 1]:
                arr[j], arr[j - 1] = arr[j - 1], arr[j]
            else:
                break

print('请输入测试次数')
for _ in range(int(input())):
    arr = [random.randint(-100, 100) for _ in range(100)]
    arr1 = arr.copy()
    arr2 = arr.copy()
    insertion_sort(arr1)
    arr2.sort()
    if arr1 != arr2:
        print('oops')
        print(arr, arr1, arr2, sep='\n')
        break

